package com.chalk.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.chalk.common.exception.ServiceException;
import com.chalk.dao.SysUserDao;
import com.chalk.model.SysUser;
import com.chalk.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 系统用户表(SysUser)表服务实现类
 *
 * @author maxiaoqiang
 * @since 2019-03-22 17:38:25
 */
@Service
@Transactional(rollbackFor = ServiceException.class)
public class SysUserServiceImpl extends ServiceImpl<SysUserDao, SysUser> implements SysUserService {

    @Autowired
    private SysUserDao sysUserDao;
    /*自定义接口*/

    /**
     * 根据主键批量(逻辑)删除
     *
     * @param ids
     * @return
     */
    @Override
    public int deleteBatchByPrimaryKey(String[] ids) {
        return sysUserDao.deleteBatchByPrimaryKey(ids);
    }

}